<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<#include "/jeecms_sys/head.html"/>
<script type="text/javascript">
$(function() {
	$("#jvForm").validate();
});

function imgInit(){
	var imgURL = "${carAdviser.gravatar!}";
	if(imgURL==undefined || imgURL == null || imgURL=="" ){
		return;
	}
	$("#preImg1").attr("src",imgURL+"?tempid="+Math.random());
}
</script>
</head>
<body onload="imgInit()">
<div class="box-positon">
	<div class="rpos"><@s.m "global.position"/>:  <@s.m "carAdviser.function"/> - <@s.m "global.edit"/></div>
	<form class="ropt">
		<input type="button" value="<@s.m "global.backToList"/>" onclick="history.back();" class="return-button"/>
	</form>
	<div class="clear"></div>
</div>
<div class="body-box">
<@p.form id="jvForm" action="o_update.do" labelWidth="12">
<input type="hidden" name="q_level" value=""/>
<input type="hidden" name="q_name" value=""/>
<@p.text width="50" colspan="1" label="顾问名称" name="name" value=carAdviser.name class="required" required="true" maxlength="20"/>
<@p.select colspan="1" label="shopInfo.shopName" name="shopId" value=carAdviser.shop.id list=listShop listKey="id" listValue="shopName" class="required" required="true"/><@p.tr/>
<@p.text width="50" colspan="1" label="顾问微信账号" name="weixinAccount" value=carAdviser.weixinAccount class="required" required="true" maxlength="100"/>
<@p.text width="50" colspan="1" label="顾问系统登陆账号" name="loginName" value=carAdviser.loginName class="required" required="true" maxlength="100" help="此处务必与其对应登陆人账号一致"/><@p.tr/>
<@p.text width="50" colspan="1" label="电话" name="telNum" value=carAdviser.telNum class="required digits"  required="true" maxlength="50"/>
<@p.select colspan="1" label="顾问类型" name="adviserType" value=carAdviser.adviserType list=listAdviserType listKey="dicCode" listValue="dicName" class="required" required="true"/><@p.tr/>

<@p.text width="50" colspan="1" label="排序号" name="orderNum" value=carAdviser.orderNum maxlength="4" class="required digits"  required="true"/>
<@p.text width="50" colspan="1" label="顾问星级" name="level" value=carAdviser.level maxlength="4" class="required digits"  required="true"/><@p.tr/>

<!-- <@p.text width="50" colspan="1" label="预约数量" name="orderCount" value=carAdviser.orderCount maxlength="4" class="required digits"  required="true"/>
 --><@p.textarea label="顾问简介"  name="content" value=carAdviser.content cols="30" rows="3" maxlength="500" colspan="2"class="required" required="true" width="50"/><@p.tr/>

<!-- 上传图片 
<@p.td label="上传头像" colspan="1" width="50" noHeight="true">
<@p.text id="uploadImgPath1" name="gravatar" value=carAdviser.gravatar style="width:220px" class="required"  required="true"/>
<span id="ufc1" style="position:relative">
<input type='text' id='uploadFileText1' size="14"/>  
<input class="browse" type='button' value='<@s.m "global.browse"/>'/>
<input onchange="$('#uploadFileText1').val(this.value)" size="14" type="file" id="uploadFile1" class="file-button"/>
</span>
<label><input type="checkbox" onclick="$('#mark1').val(this.checked);"/><@s.m "imageupload.mark"/></label>
<input type="hidden" id="mark1" value="false"/> <input type="button" value="<@s.m "imageupload.upload"/>" onclick="upload(1);" class="upload-button"/><br/>
<@s.m "global.width"/>: <input type="text" id="zoomWidth1" value="100" size="5"/>
<@s.m "global.height"/>: <input type="text" id="zoomHeight1" value="70" size="5"/> 
<input type="button" value="<@s.m "imageupload.cut"/>" onclick="imgCut(1);" class="cut-button"/> 
</@p.td>
<@p.td colspan="1" width="50">
<img id="preImg1" alt="<@s.m "imageupload.preview"/>" style="width:100px;height:70px;background-color:#CCCCCC;border:1px solid #333"/>
</@p.td><@p.tr/>
-->
<!-- 图片end -->
<@p.td label="二维码" colspan="2" width="50">
<img id="preImg1"  style="width:100px;height:70px;background-color:#CCCCCC;border:1px solid #333"/>
</@p.td><@p.tr/>
<@p.td colspan="2">
	<@p.hidden name="id" value=carAdviser.id/>
	<@p.submit code="global.submit"/>&nbsp; <@p.reset code="global.reset"/>
</@p.td>
</@p.form>
</div>
</body>
</html>